/**
 * 配置管理 - 菜单管理模块接口
 * @author xiaoxujs
 */

import { ISyhtMenuAddMenuParams, ISyhtMenuUpdateMenuParams } from "../../type/ConfigManagement/MenuPage/api";
import { basicIp, newHttpService } from "../http";

// 查询全部菜单
export const postSyhtMenuGetMenuAllTree = ( ) => {
    const url = basicIp + '/syht/menu/getMenuAllTree';
    return newHttpService.postData(url)
}
// 添加菜单
export const postSyhtMenuAddMenu = (data: ISyhtMenuAddMenuParams) => {
    const url = basicIp + '/syht/menu/addMenu';
    return newHttpService.postData(url, data)
}
// 修改菜单
export const postSyhtMenuUpdateMenu = (data: ISyhtMenuUpdateMenuParams) => {
    const url = basicIp + '/syht/menu/updateMenu';
    return newHttpService.postData(url, data)
}
// 删除菜单+
export const getSyhtMenuDeleteMenu = (data: {menuId: string}) => {
    const url = basicIp + '/syht/menu/deleteMenu';
    return newHttpService.getData(url, data)
}